package com.example.demo1

import com.example.util.p
import kotlinx.coroutines.async
import kotlinx.coroutines.runBlocking
import kotlin.system.measureTimeMillis


fun main() = runBlocking{
    val time = measureTimeMillis {
        val one = async { searchItemlOne() }
        val two = async { searchItemTwo() }
        p("The time is ${one.await()} and ${two.await()}")
    }

    p("Cose time is $time ms")

}















